@import '~ng-devui/styles-var/devui-var.scss';

.sidebar-wrapper {
  position: fixed;
  top: 70px;
  width: 260px;
  max-width: 260px;
  height: 100%;
  overflow-y: hidden;
  z-index: 1000;
  border-right: 1px solid $devui-dividing-line;
  background-color: $devui-base-bg;

  &:hover {
    overflow-y: auto;
  }

  transition: all 0.3s;
}

.sidebar-nav {
  width: 260px;
  padding-bottom: 80px;
}

.sidebar-menu {
  width: 260px;

  outline: none;
  margin-bottom: 0;
  list-style: none;
  background: $devui-base-bg;

  &-item {
    text-overflow: ellipsis;
    overflow: hidden;
    padding-left: 20px;
    height: 40px;
    display: flex;
    align-items: center;

    a {
      display: block;
      width: 100%;
      height: 100%;
      line-height: 40px;
      color: $devui-text;
    }

    &:not(.sidebar-menu-item-selected):hover {
      background-color: $devui-list-item-hover-bg;
    }

    &-selected {
      color: $devui-brand-active;
      font-weight: 700;
      border-right: 2px solid $devui-brand;
      a {
        color: inherit;
      }
    }
  }
}

@media (max-width: 1024px) {
  .sidebar-wrapper {
    max-width: 0;
  }
}

:host ::ng-deep .devui-accordion-menu-item > .devui-accordion-item-title {
  font-weight: 600;
}

d-accordion ::ng-deep .devui-accordion-menu {
  box-shadow: none !important;
}

d-tag {
  text-indent: 0;
  
  & + d-tag {
  margin-left: 4px;
  }
}